package com.mentalhealthplatform.teacherV2.repository;

import com.mentalhealthplatform.appModels.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.UUID;

@Repository
public interface StudentRepositoryV2 extends JpaRepository<Student, UUID> {
    /**
     * 根据学生姓名或学号模糊查询学生列表。
     * @param name 学生姓名
     * @param number 学生学号
     * @return 符合条件的学生列表
     */
    List<Student> findByNameContainingOrNumberContaining(String name, String number);

    List<Student> findByNameContainingAndGenderContainingAndMajorContainingAndGradeContainingAndCollegeContaining(
            String name, String gender, String major, String grade, String college);
}